const uniq = require('uniq')

let arr = [1, 2, 3, 4, 2, 4, 9, 8, 4, 1, 2]

const res = uniq(arr)
console.log(res)
